package com.bestvike.stone.spring.feign.core;

import com.bestvike.linq.exception.NotSupportedException;
import feign.Request;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLSocketFactory;

/**
 * Created by 许崇雷 on 2019-02-21.
 */
@Data
@EqualsAndHashCode(callSuper = false)
public final class SslOptions extends Request.Options {
    public static final SslOptions EMPTY = new SslOptions(null, null);
    private final HostnameVerifier hostnameVerifier;
    private final SSLSocketFactory socketFactory;

    @Override
    public int connectTimeoutMillis() {
        throw new NotSupportedException();
    }

    @Override
    public int readTimeoutMillis() {
        throw new NotSupportedException();
    }

    @Override
    public boolean isFollowRedirects() {
        throw new NotSupportedException();
    }
}
